package com.onenine.app.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.onenine.app.R;
import com.onenine.app.model.CoterieItem;
import com.onenine.app.utils.GlideUtils;

public class CoterieSelectAdapter extends BaseQuickAdapter<CoterieItem, BaseViewHolder> {

    public CoterieSelectAdapter() {
        super(R.layout.layout_coterie_select_item);
    }

    @Override
    protected void convert(final BaseViewHolder holder, final CoterieItem item) {
        GlideUtils.loadSrcImage(mContext, holder.getView(R.id.niv_img), item.getCoterieIcon());
        holder.setText(R.id.tv_name, item.getCoterieName())
                .setText(R.id.tv_desc, item.getRemark());
    }

}
